perLevel - true/false - mark rows not by order, but by level in treegrid
levelUnique - true/false - creates additional unique css class based on row level
enableAutoHeight(mode, maxHeight, countFullHeight) enable autoheight of grid
Topic(s): File required:dhtmlxgrid.js
mode - true/false
maxHeight - maximum height before scrolling appears (no limit by default)
countFullHeight - control the usage of maxHeight parameter - when set to true all grid height included in max height calculation, if false then only data part (no header) of grid included in calcualation (false by default)
fl - true to treat column header values as image names
enableHeaderMenu(...)
[Professional]
enable pop up menu which allows hidding/showing columns
File required:dhtmlxgrid_hmenu.js
enableKeyboardSupport(mode) enable/disable hot keys in grid
Topic(s): File required:dhtmlxgrid.js
mode - true/false
enableLightMouseNavigation(mode) enable/disable light mouse navigation mode (row selection with mouse over, editing with single click), mutual exclusive with enableEditEvents
File required:dhtmlxgrid.js
mode - true/false
enableMarkedCells(fl) sets marked cells support to enabled or disabled state
File required:dhtmlxgrid_markers.js
state - true or false
enableMathEditing(...)
[Professional]
enable/disable editing of math cells
File required:dhtmlxgrid_math.js
enableMathSerialization(...)
[Professional]
enable/disable serialization of math formulas
File required:dhtmlxgrid_math.js
enableMercyDrag(...)
[Professional]
enable drag without removing (copy instead of move)
Topic(s): File required:dhtmlxgrid_drag.js
enableMultiline(state) set multiline rows support to enabled or disabled state
col_ind - index of the column to get combo object for
getCustomCombo(id, ind) get combobox specific for cell in question
File required:dhtmlxgrid.js
id - row id
ind - column index
getItemImage(...)
[Professional]
get image of tree col
Topic(s): File required:dhtmlxtreegrid.js
getItemText(...)
[Professional]
get real caption of tree col
Topic(s): File required:dhtmlxtreegrid.js Returns:real caption of tree col
getLevel(rowId) return level of treeGrid row
Topic(s): File required:dhtmlxtreegrid.js
rowId - id of row
Returns:level of treeGrid row
getMarked() gets marked cells
File required:dhtmlxgrid_markers.js Returns:the array of marked cells (pairs of row id and column index)
getOpenState(...)
[Professional]
return open/close state of row
Topic(s): File required:dhtmlxtreegrid.js Returns:open/close state of row
getParentId(...)
[Professional]
return id of parent row
Topic(s): File required:dhtmlxtreegrid.js Returns:id of parent row
getRedo(...)
[Professional]
get length of available ReDo operations
File required:dhtmlxgrid_undo.js
getRowId(ind) gets row id by index
Topic(s): File required:dhtmlxgrid.js
ind - row index
Returns:row id or null if there is no row with specified index
getRowIndex(row_id) gets row index by id (grid only)
Topic(s): File required:dhtmlxgrid.js
row_id - row id
Returns:row index or -1 if there is no row with specified id
getRowsNum() returns count of row in grid ( in case of dynamic mode it will return expected count of rows )
File required:dhtmlxgrid.js Returns:count of rows in grid
getSelectedCellIndex() gets index of selected cell
Topic(s): cells controll;
File required:dhtmlxgrid.js Returns:index of selected cell or -1 if there is no selected sell
getSelectedRowId() gets selected row id
Topic(s): rows control;
treegrid;
File required:dhtmlxgrid.js Returns:id of selected row (list of ids with default delimiter) or null if non row selected
getSortingState() get sorting state of grid
Topic(s): File required:dhtmlxgrid.js Returns:array, first element is index of sortef column, second - direction of sorting ("asc" or "des").
getStateOfView() returns details about current grid state
File required:dhtmlxgrid.js
getSubItems(...)
[Professional]
return list of child row id, sparated by comma
Topic(s): File required:dhtmlxtreegrid.js Returns:list of child rows
getUndo(...)
[Professional]
get length of available UnDo operations
File required:dhtmlxgrid_undo.js
getUserData(row_id, name) gets user Data
Topic(s): data manipulation;
File required:dhtmlxgrid.js
row_id - row id. if empty then user data is for grid (not row)
name - name of user data
Returns:value of user data
gridFromClipboard(...)
[Professional]
init grid from CSV stored in clipboard
Topic(s): File required:dhtmlxgrid_nxml.js
gridToClipboard(...)
[Professional]
copy grid in CSV to clipboard
Topic(s): File required:dhtmlxgrid_nxml.js
gridToGrid(rowId,sgrid,tgrid) redefine this method in your code to define how grid row values should be used in another grid
Topic(s): File required:dhtmlxgrid_drag.js
rowId - id of draged row
sgrid - source grid object
tgrid - target grid object
Returns:array of values for cells in target grid row
gridToTreeElement(...)
[Professional]
redefine this method in your code to define how grid row values should be used in tree (using input parameters you can change id of new tree node, set label, set userdata blocks etc.).
Topic(s): File required:dhtmlxgrid_drag.js Returns:if true, then grid row will be moved to tree, else - copied
groupBy(...)
[Professional]
group grid content by values of specified column
File required:dhtmlxgrid_group.js
hasChildren(...)
[Professional]
return children count
serializeToCSV(...)
[Professional]
serialize to CSV string
Topic(s): File required:dhtmlxgrid_nxml.js
setAwaitedRowHeight(height) set height which will be used in smart rendering mode for row calculation, function need to be used if you use custom skin for grid which changes default row height
Topic(s): File required:dhtmlxgrid_srnd.js
{int} height - awaited height of row
Returns:void
setCSVDelimiter(...)
[Professional]
load grid from CSV string
Topic(s): File required:dhtmlxgrid_nxml.js
setCellExcellType(...)
[Professional]
set excell type for cell in question
File required:dhtmlxgrid.js
setCellTextStyle(row_id, ind, styleString) sets style to cell
setItemCloseable(...)
[Professional]
enable/disable closing of row
Topic(s): File required:dhtmlxtreegrid.js
setItemImage(...)
[Professional]
set image of tree col
Topic(s): File required:dhtmlxtreegrid.js
setItemText(...)
[Professional]
set real caption of tree col
Topic(s): File required:dhtmlxtreegrid.js
setMathRound(...)
[Professional]
enable/disable rounding while math calculations
File required:dhtmlxgrid_math.js
setNoHeader(fl) create grid with no header. Call before initialization, but after setHeader. setHeader have to be called in any way as it defines number of columns
setNumberFormat(...)
[Professional]
set mask for formatting numeric data ( works for [ed/ro]n excell only or oher cell types with suport for this method)
Topic(s): File required:dhtmlxgrid.js
setOnOpenEndHandler(func) set function called after tree node opened/closed
styleString - style string in common format (exmpl: "color:red;border:1px solid gray;")
setRowspan(...)
[professional]
set rowspan with specified length starting from specified cell
File required:dhtmlxgrid_rowspan.js
setScrollbarWidthCorrection(width) set width of browser scrollbars, will be used to correct autoWidth calculations (by default grid uses 16 for IE and 19 pixels for FF)
Topic(s): File required:dhtmlxgrid.js
width - scrollbar width
setSerializableColumns(...)
[Professional]
configure which column must be serialized (if you do not use this method, then all columns will be serialized)
Topic(s): data manipulation;
overal control;
File required:dhtmlxgrid.js
setSerializationLevel(...)
[Professional]
configure XML serialization
Topic(s): data manipulation;
overal control;
File required:dhtmlxgrid.js
setSkin(name) set one of predefined css styles (xp, mt, gray, light, clear, modern)
col - index of column, by which grid need to be sorted
type - sorting type (str,int,date), optional, by default sorting type taken from column setting
order - sorting order (asc,des), optional, by default sorting order based on previous sorting operation
sortTreeRows(...)
[Professional]
sorts treegrid by specified column
Topic(s): colums control;
data manipulation;
treegrid;
File required:dhtmlxtreegrid.js
startFastOperations() start fast operation mode, in such mode events are not generated, some time consuming actions applied only once, which allow to increase performance
Topic(s): File required:dhtmlxgrid_fast.js
stopFastOperations() turn off fast operation mode, need to be executed to normalize view.
Topic(s): File required:dhtmlxgrid_fast.js
submitAddedRows(mode) include additional data with info about which rows was added and which deleted, enabled by default
Topic(s): File required:dhtmlxgrid_form.js
mode - {boolean} enable|disable mode
submitOnlyChanged(mode) include only changed rows in form submit
Topic(s): File required:dhtmlxgrid_form.js
mode - {boolean} enable|disable mode
submitOnlyRowID(mode) include only row's IDS in form submit
Topic(s): File required:dhtmlxgrid_form.js
mode - {boolean} enable|disable mode
submitOnlySelected(mode) include only selected rows in form submit
Topic(s): File required:dhtmlxgrid_form.js
mode - {boolean} enable|disable mode
submitSerialization(mode) include serialized grid as part of form submit
Topic(s): File required:dhtmlxgrid_form.js
mode - {boolean} enable|disable mode
treeToGridElement(...)
[Professional]
redefine this method in your code to define how tree node values should be used in grid (using input parameters you can change id of new row, values for cells, userdata blocks etc.).
Topic(s): File required:dhtmlxgrid_drag.js Returns:if true, then tree node should be moved to grid, else - copied
uid() returns unique ID
File required:dhtmlxgrid.js
unmarkAll() removes selection from all marked cell
File required:dhtmlxgrid_markers.js
updateCellFromClipboard(...)
[Professional]
set value of cell from clipboard
Topic(s): File required:dhtmlxgrid_nxml.js
updateFromXML(url, insert_new, del_missed, afterCall) refresh grid from XML ( doesnt work for buffering, tree grid or rows in smart rendering mode )
File required:dhtmlxgrid.js
insert_new - insert new items
del_missed - delete missed rows
afterCall - function, will be executed after refresh completted
updateRowFromClipboard(...)
[Professional]
set value of row from clipboard
Topic(s): File required:dhtmlxgrid_nxml.js
eXcell object API
eXcell_ed object API
eXcell_edtxt object API
eXcell_edn object API
eXcell_ch object API
eXcell_ra object API
eXcell_txt object API
eXcell_txttxt object API
eXcell_co object API
eXcell_coro object API
eXcell_cp object API
eXcell_img object API
eXcell_price object API
eXcell_dyn object API
eXcell_ro object API
eXcell_rotxt object API
eXcell_tree object API
getLabel(val) sets text representation of cell ( setLabel doesn't triger math calculations as setValue do)
File required:dhtmlxtreegrid.js
val - new value
setLabel(val) sets text representation of cell ( setLabel doesn't triger math calculations as setValue do)